/**
 * Created by Administrator on 2016/12/23.
 */

var off=document.getElementById("off");
var warp=document.getElementsByClassName('warp');

var indexAdd=document.getElementsByClassName('index-add');

var screenHeight=screen.availHeight;


off.onclick=function(){
    warp[0].style.top=screenHeight+'px';
    warp[0].style.transition='all .4s linear';

};

indexAdd[0].onclick=function(){
    warp[0].style.top=0+'px';
    warp[0].style.transition='all .4s linear';
};